package com.rcc.mongo.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by rcc on 2017/6/24.
 * MongoDB 对应的实体类
 */
@Entity
public class UserMongo {
    @Id
    private String id;

    private String name;

    private int age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "UserMongo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
